import taskSelf from '@/credit/router/asyncRoutes/city/task-self'
import taskMission from '@/credit/router/asyncRoutes/province/task-mission'
import hnd from '@/credit/router/asyncRoutes/province/task-hnd'

export default [
  {
    path: '',
    redirect: 'panel',
  },
  {
    path: 'self',
    component: { render: h => h('router-view') },
    meta: { title: '直担业务', activeSidebar: true },
    children: [
      {
        path: '',
        component: () =>
          import(/* webpackChunkName: "city-self" */ '@/credit/views/city/self/Index.vue'),
        meta: { title: '' },
        children: taskSelf,
      },
      {
        path: 'self_after',
        name: 'selfAfter',
        component: () =>
          import(
            /* webpackChunkName: "city-self-after" */ '@/credit/views/city/self/after/Index.vue'
          ),
        meta: { title: '贷后详情' },
      },
    ],
  },
  {
    path: 'mission',
    component: { render: h => h('router-view') },
    meta: { title: '联担业务', activeSidebar: true },
    children: [
      {
        path: '',
        component: () =>
          import(
            /* webpackChunkName: "province-mission" */ '@/credit/views/province/mission/Index.vue'
          ),
        meta: { title: '' },
        children: taskMission,
      },
      {
        path: 'mission_after',
        name: 'missionAfter',
        component: () =>
          import(
            /* webpackChunkName: "province-mission-after" */ '@/credit/views/city/self/after/Index.vue'
          ),
        meta: { title: '贷后详情' },
      },
    ],
  },
  {
    path: 'panel',
    component: { render: h => h('router-view') },
    meta: { title: '限率业务', activeSidebar: true },
    children: [
      {
        path: '',
        component: () =>
          import(/* webpackChunkName: "credit-task-hnd" */ '@/credit/views/province/hnd/Index.vue'),
        meta: { title: '' },
        children: hnd,
      },
      {
        path: 'hnd_after',
        name: 'hndAfter',
        component: () =>
          import(/* webpackChunkName: "credit-task-hnd" */ '@/bank/views/hnd/after/Index.vue'),
        meta: { title: '贷后详情' },
      },
    ],
  },
  {
    path: 'rating_edit',
    name: 'taskRatingEdit',
    component: () =>
      import(
        /* webpackChunkName: "credit-task-rating" */ '@/credit/views/city/task/TaskRatingEdit.vue'
      ),
    meta: { title: '信用评级', hidden: true },
  },
  {
    path: 'ratingresult',
    name: 'taskRatingResult',
    component: () =>
      import(
        /* webpackChunkName: "credit-task-rating" */ '@/credit/views/city/task/TaskRatingResult.vue'
      ),
    meta: { title: '信用评级结果', hidden: true },
  },
  {
    path: 'after',
    component: () =>
      import(/* webpackChunkName: "credit-task-after" */ '@/credit/views/city/task/AfterList.vue'),
    meta: { title: '贷后管理', hidden: true },
    children: [
      {
        path: '',
        redirect: 'abnormal',
      },
      {
        path: 'abnormal',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-after" */ '@/credit/views/city/task/AfterAbnormal.vue'
          ),
        meta: { title: '监管记录', hide: true },
      },
      {
        path: 'report',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-after" */ '@/credit/views/city/task/AfterReportList.vue'
          ),
        meta: { title: '监管报告', hide: true },
      },
      {
        path: 'detail',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-after" */ '@/credit/views/city/task/AfterReport.vue'
          ),
        meta: { title: '' },
      },
    ],
  },
  {
    path: 'check',
    component: () =>
      import(
        /* webpackChunkName: "credit-task-check" */ '@/credit/components/creditFile/Index.vue'
      ),
    meta: { title: '信用档案', hidden: true },
  },
  {
    path: 'info',
    component: () =>
      import(/* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Info.vue'),
    meta: { title: '客户信息', hidden: true },
    children: [
      {
        path: '',
        redirect: 'base',
      },
      {
        path: 'base',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/InfoBase.vue'
          ),
        meta: { title: '企业基本信息' },
      },
      {
        path: 'person',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/InfoPerson.vue'
          ),
        meta: { title: '法人基本信息' },
      },
      {
        path: 'product',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/InfoProduct.vue'
          ),
        meta: { title: '产业信息' },
      },
      {
        path: 'extguaran',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Extguarantee.vue'
          ),
        meta: { title: '对外担保信息' },
      },
      {
        path: 'holder',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/ShareHolder.vue'
          ),
        meta: { title: '股东信息' },
      },
      {
        path: 'Keyvendor',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Keyvendor.vue'
          ),
        meta: { title: '主要供销合作商信息' },
      },
      {
        path: 'Seller',
        component: () =>
          import(/* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Seller.vue'),
        meta: { title: '生产条件' },
      },
      {
        path: 'guarant',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Guarantif.vue'
          ),
        meta: { title: '担保信息' },
      },
      {
        path: 'bank',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Bankflow.vue'
          ),
        meta: { title: '银行账户流水' },
      },
      {
        path: 'Seller',
        component: () =>
          import(/* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Seller.vue'),
        meta: { title: '生产条件' },
      },
      {
        path: 'Powerinformation',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Powerinformation.vue'
          ),
        meta: { title: '用电信息' },
      },
      {
        path: 'census',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-census" */ '@/credit/views/city/task/CensusReport.vue'
          ),
        meta: { title: '调查报告' },
      },
      {
        path: 'census_simple',
        name: 'census_simple',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/CensusSimple.vue'
          ),
        meta: { title: '调查报告(简易版)' },
      },
      {
        path: 'prcatise',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Prcatise.vue'
          ),
        meta: { title: '调查报告查看' },
      },
      {
        path: 'report',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/FinanceReport.vue'
          ),
        meta: { title: '报表信息' },
      },
      {
        path: 'detail',
        component: () =>
          import(/* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Details.vue'),
        meta: { title: '项目明细' },
      },
      {
        path: 'assets',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/InfoAssets.vue'
          ),
        meta: { title: '资产信息' },
      },
      {
        path: 'staff',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Staffadmodel.vue'
          ),
        meta: { title: '员工管理' },
      },
      {
        path: 'seller',
        component: () =>
          import(/* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Seller.vue'),
        meta: { title: '生产条件' },
      },
      {
        path: 'power',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Powerinformation.vue'
          ),
        meta: { title: '用电信息' },
      },
      {
        path: 'facility',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Facility.vue'
          ),
        meta: { title: '设备设施' },
      },
      {
        path: 'enterpsif',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Enterpsif.vue'
          ),
        meta: { title: '股东及配偶征信' },
      },
      {
        path: 'archives',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/InfoReport.vue'
          ),
        meta: { title: '信用档案' },
      },
      {
        path: 'Keyvendor',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Keyvendor.vue'
          ),
        meta: { title: '主要供销合作商信息' },
      },
      {
        path: 'Seller',
        component: () =>
          import(/* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Seller.vue'),
        meta: { title: '生产条件' },
      },
      {
        path: 'insurance',
        component: () =>
          import(
            /* webpackChunkName: "credit-task-info" */ '@/credit/views/city/task/Insurance.vue'
          ),
        meta: { title: '保险信息' },
      },
    ],
  },
]
